package com.lzx.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzx.shop.dataobject.UserDO;
import com.lzx.shop.model.Result;
import com.lzx.shop.params.UserParam;

import java.util.List;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName UserService.java
 * @Description TODO
 * @createTime 2021年03月17日 23:51:00
 */
public interface UserService extends IService<UserDO> {

    boolean save(UserDO userDO);

    List<UserDO> findAll() ;

    List<UserDO> getByIds(List<String> userIds);

    UserDO findById(String id);

    boolean update(UserDO userDO);

    boolean DeleteById(String id);

    Result Login(String mobile, String pwd);

    Result LoginByUserName(String userName, String pwd);

    int count();

    IPage<UserDO> selectPage(Page<UserDO> page, UserParam userParam);

    Boolean exits(String openId);

    UserDO query(QueryWrapper<UserDO> queryWrapper);
}
